/*
 * AreaOfInterestBO.java
 *
 * Created on February 13, 2007
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package finalintex2web;
import java.util.*;

/**
 * area of interest busines objects
 * @author craig marshall
 * @version 1
 */
public class AreaOfInterestBO {
    
    private String id, description;
    private boolean indb = false,dirty = false;
    
    
    
    
    /** Creates a new instance of AreaOfInterestBO */
    AreaOfInterestBO(String id) {
        this.setId(id);
        
    }
    
    /**
     * gest the object id
     * @return id 
     */
    public String getId() {
        return id;
    }

    /**
     * sets the id
     * @param id the object id
     */
    public void setId(String id) {
        this.id = id;
        this.dirty = true;
    }

    /**
     * gets the description
     * @return description of aoi
     */
    public String getDescription() {
        return description;
    }

    /**
     * sets the description
     * @param description the description
     */
    public void setDescription(String description) {
        this.description = description;
        this.dirty = true;
    }

    /**
     * returns if the object is in the database
     * @return returns boolean in database
     */
    public boolean isIndb() {
        return indb;
    }

    /**
     * sets the in database flag
     * @param indb flag
     */
    public void setIndb(boolean indb) {
        this.indb = indb;
        this.dirty = true;
    }

    /**
     * returns the true if the object has been changed and not saved
     * @return 
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * 
     * @param dirty 
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

}